<?php
namespace Apps\Back\Controllers;
use Phalcon\Mvc\Controller;

class ControllerBase extends Controller{
	 
   public function alert($msg){
   	 echo "<script>alert('$msg')</script>";
   }

  public function jump($url,$msg=''){
		$this->alert($msg);
		echo "<script>location.href='".$this->url->getBaseUri().$url."'</script>";
	}



}



?>